package process

import "context"

type AnalysisContext struct {
	ctx            context.Context
	input          []KeywordsInput // 输入数据
	keywordIndexes []KeywordIndex

	keywordCount map[string]int   // keyword -> count kw出现的数量
	keywordsMap  map[string][]int // keyword -> []index:list kw与input列表
	summaryMap   map[string]Summary
}

func New(ctx context.Context) (c *AnalysisContext) {
	return &AnalysisContext{
		ctx:          ctx,
		keywordCount: make(map[string]int),
		keywordsMap:  make(map[string][]int),
		summaryMap:   make(map[string]Summary),
	}
}
